import express from 'express';
import * as userAtushRouter from './user_auth.controller';
import { validateLoginData, authGuard, userGuard } from '../auth/auth.middleware';

const router = express.Router();

/**
 * 更新权限
 */
router.post('/updateUserAuth', authGuard, userAtushRouter.requestUserAuth);

/**
 * 增加会员时间（签到）
 */
router.post('/oneVipUserAuth', authGuard, userAtushRouter.oneVipUserAuth);

/**
 * 获取权限
 */
router.post('/getUserAuth', userAtushRouter.userAuth);

/**
 * 检查权限注册表是否已注册，没有注册就添加
 */
router.post('/createUserAuth', authGuard, userAtushRouter.storeAuthUser);

/**
 * 导出路由
 */
export default router;